<script src="../asynx-min.js"></script>

<input type='text' id="teste" size='100'>

<div id="log"></div>

<script>
	
	
	asynx.event.whileKeyPressed('teste', [65],
	
		function(e,a) {
			log('PRESS:' + e+":"+a)
		}, [1,2], 
		
		function(e,a) {
			log('FIM:'+e+":"+a)
		}, [1,2,3]
	
	);
	
	asynx.event.onStopTyping('teste', function() {
		log('acabou de digitar')
	});
	
	
</script>